using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace LF.Domain.Entities
{
    /// <summary>
    /// 物料分类实体
    /// </summary>
    public class MaterialCategory : BaseEntity
    {
        /// <summary>
        /// 分类名称
        /// </summary>
        public string Name { get; set; }
        
        /// <summary>
        /// 分类描述
        /// </summary>
        public string? Description { get; set; }
        
        /// <summary>
        /// 分类编码
        /// </summary>
        public string? Code { get; set; }
        
        /// <summary>
        /// 状态（0禁用、1启用）
        /// </summary>
        public bool Statue { get; set; } = true;
        
        /// <summary>
        /// 是否删除
        /// </summary>
        public bool IsDeleted { get; set; }
        
        /// <summary>
        /// 父分类ID
        /// </summary>
        public Guid? ParentId { get; set; }
        
        /// <summary>
        /// 层级（1为一级分类，2为二级分类）
        /// </summary>
        public int Level { get; set; } = 1;
        
        /// <summary>
        /// 排序
        /// </summary>
        public int Sort { get; set; } = 0;
    }
} 